package beans;

import java.util.List;

import dao.Knowledgepoint;
import dao.Prelevance;
import dao.PrelevanceDAO;

public class Prelevancebean {
    private PrelevanceDAO prelevanceDAO;
    public Prelevancebean(){
	prelevanceDAO = new PrelevanceDAO();
    }
    public boolean addPrelevance(List<Prelevance> list){
	return prelevanceDAO.add(list);
    }
    public int deletePrelevances(Prelevance prelevance){
	return prelevanceDAO.delete(prelevance);
    }
    public int deletePrelevanceById(Prelevance prelevance){
	return prelevanceDAO.deleteById(prelevance);
    }
    public int getPrelevanceid(){
	return prelevanceDAO.getPrelevanceid();
    }
    public List<Integer> findKnowledgesByKnowledgeIds(List<Integer> list){
	return prelevanceDAO.findKnowledgesByKnowledgeIds(list);
    }
}
